/**
 * 保存播放记录
 * @param finish 完成状态，1未完成，2已完成
 * @param practice 随堂练习分数
 */
function savePlayRecord(finish,practice) {
    //当前正在播放的目录ID
    var playId = $("#playId").val();
    //课程/套餐ID(购买的课程ID)
    var buyCourseId = $("#buyCourseId").val();
    //当前播放的课程ID
    var courseId = $("#courseId").val();
    var params = {
        'buyCourseId':buyCourseId,
        'courseId':courseId,
        'catalogId':playId,
        'finish':finish,
        'practice':practice,
        'duration':studyTime
    };
    params = JSON.stringify(params);
    $.ajax({
        url:baseloaction +'/web/uc/course/play/record/savePlayRecord',
        type:'post',
        dataType:'json',
        data:params,
        contentType: 'application/json;charset=utf-8',
        success:function (result) {
            if(result.success==true){

            }else{
                //icModale(0,'',result.message);
            }
        },
        error:function (error) {
            icModale(0,'','系统错误，保存播放记录失败');
        }
    });
}